Optimal. Leaf size=51 \[ \frac{2 \sqrt{a x^2+b x^3}}{x}-2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} x}{\sqrt{a x^2+b x^3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0490906, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {2021, 2008, 206} \[ \frac{2 \sqrt{a x^2+b x^3}}{x}-2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} x}{\sqrt{a x^2+b x^3}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2021
Rule 2008
Rule 206
Rubi steps
\begin{align*} \int \frac{\sqrt{a x^2+b x^3}}{x^2} \, dx &=\frac{2 \sqrt{a x^2+b x^3}}{x}+a \int \frac{1}{\sqrt{a x^2+b x^3}} \, dx\\ &=\frac{2 \sqrt{a x^2+b x^3}}{x}-(2 a) \operatorname{Subst}\left (\int \frac{1}{1-a x^2} \, dx,x,\frac{x}{\sqrt{a x^2+b x^3}}\right )\\ &=\frac{2 \sqrt{a x^2+b x^3}}{x}-2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} x}{\sqrt{a x^2+b x^3}}\right )\\ \end{align*}
Mathematica [A] time = 0.0278593, size = 53, normalized size = 1.04 \[ \frac{2 x \left (-\sqrt{a} \sqrt{a+b x} \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{a}}\right )+a+b x\right )}{\sqrt{x^2 (a+b x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 52, normalized size = 1. \begin{align*} -2\,{\frac{\sqrt{b{x}^{3}+a{x}^{2}}}{x\sqrt{bx+a}} \left ( \sqrt{a}{\it Artanh} \left ({\frac{\sqrt{bx+a}}{\sqrt{a}}} \right ) -\sqrt{bx+a} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{b x^{3} + a x^{2}}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.850497, size = 247, normalized size = 4.84 \begin{align*} \left [\frac{\sqrt{a} x \log \left (\frac{b x^{2} + 2 \, a x - 2 \, \sqrt{b x^{3} + a x^{2}} \sqrt{a}}{x^{2}}\right ) + 2 \, \sqrt{b x^{3} + a x^{2}}}{x}, \frac{2 \,{\left (\sqrt{-a} x \arctan \left (\frac{\sqrt{b x^{3} + a x^{2}} \sqrt{-a}}{a x}\right ) + \sqrt{b x^{3} + a x^{2}}\right )}}{x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x^{2} \left (a + b x\right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.21336, size = 88, normalized size = 1.73 \begin{align*} 2 \,{\left (\frac{a \arctan \left (\frac{\sqrt{b x + a}}{\sqrt{-a}}\right )}{\sqrt{-a}} + \sqrt{b x + a}\right )} \mathrm{sgn}\left (x\right ) - \frac{2 \,{\left (a \arctan \left (\frac{\sqrt{a}}{\sqrt{-a}}\right ) + \sqrt{-a} \sqrt{a}\right )} \mathrm{sgn}\left (x\right )}{\sqrt{-a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]